#include<iostream>
#include<string.h>
#include<stdlib.h>
#define MAX 100

using namespace std;

int matrix[MAX][MAX];
int n;
int rown, columnn;

void read() {
   int tmp; 
   int sum;
   int cont1; 
   int cont2;
   while(cin >> n) {
      cont1 = 0;
      cont2 = 0;
      sum = 0;
      if(n == 0)
         return;
      memset(matrix, 0, sizeof(matrix));
      for(int i=0; i<n; i++) {
         for(int j=0; j<n; j++) {
            cin >> tmp;
            matrix[i][j] = tmp;        
            sum += tmp;
         }
         if(sum % 2 != 0) {
            rown = i;
            cont1++;
         }
         sum = 0;
      }
      
      sum = 0;
      for(int i=0; i<n; i++) {
         for(int j=0; j<n; j++) {
            sum += matrix[j][i];
         }
         if(sum % 2 != 0) {
            columnn = i;
            cont2++;
         }
         sum = 0;
      }
      if(cont1 == cont2) {
         if(cont1 == 0)
            cout << "OK" << endl;
         else if(cont1 == 1)
            cout << "Change bit (" << rown+1 << "," << columnn+1 << ")" << endl;
      } 
      else {
         cout << "Corrupt" << endl;
      }
   }
}

int main() {
   read();
   return 0;
}
